﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace Maticsoft.Web.DishInfo
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					int DId=(Convert.ToInt32(strid));
					ShowInfo(DId);
				}
			}
		}
		
	private void ShowInfo(int DId)
	{
		Maticsoft.BLL.DishInfo bll=new Maticsoft.BLL.DishInfo();
		Maticsoft.Model.DishInfo model=bll.GetModel(DId);
		this.lblDId.Text=model.DId.ToString();
		this.lblDTitle.Text=model.DTitle;
		this.lblDTypeId.Text=model.DTypeId.ToString();
		this.lblDPrice.Text=model.DPrice.ToString();
		this.lblDChar.Text=model.DChar;
		this.lblDIsDelete.Text=model.DIsDelete?"是":"否";

	}


    }
}
